import request from '@/utils/request'

// 查询履历信息列表
export function listCareerInfo(query) {
  return request({
    url: '/profession/careerInfo/list',
    method: 'get',
    params: query
  })
}

// 查询履历信息详细
export function getCareerInfo(id) {
  return request({
    url: '/profession/careerInfo/' + id,
    method: 'get'
  })
}

// 新增履历信息
export function addCareerInfo(data) {
  return request({
    url: '/profession/careerInfo',
    method: 'post',
    data: data
  })
}

// 修改履历信息
export function updateCareerInfo(data) {
  return request({
    url: '/profession/careerInfo',
    method: 'put',
    data: data
  })
}

// 删除履历信息
export function delCareerInfo(id) {
  return request({
    url: '/profession/careerInfo/' + id,
    method: 'delete'
  })
}
